<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="customerNeedCss" jsFile="customerNeedJs" current="客户需求">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>编辑话费充值
                    <small>编辑话费充值页面</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">编辑客户需求信息</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        基本信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="javascript:;" class="horizontal-form createform" id="customerNeedForm" >
                            <input type="hidden" id="id"  name="id" value="${welfare.id}">  
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
	                            <div class="row">
	                                <div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">需求编码</label>
	                                            <div class="input-group-content">
	                                                  <input type="text" class="form-control" disabled placeholder="需求编码" name="code" value="${welfare.id}"> 
	                                            </div>
	                                        </div>
	                                    </div>
	                                </div>
	                                <!--/span-->
	                                <div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">联系人</label>
	                                            <div class="input-group-content">
	                                                  <input type="text" class="form-control" disabled placeholder="联系人" name="connection" value="${welfare.connection}"> 
	                                            </div>
	                                        </div>
	                                    </div>
	                                </div>
	                            </div>
	                            <div class="row">
	                                <div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">联系电话</label>
	                                            <div class="input-group-content">
	                                                  <input type="text" class="form-control" disabled placeholder="联系电话" name="mobile" value="${welfare.mobile}"> 
	                                            </div>
	                                        </div>
	                                    </div>
	                                </div>
	                                <div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">电子邮箱</label>
	                                            <div class="input-group-content">
	                                                  <input type="text" class="form-control" disabled placeholder="电子邮箱" name="email" value="${welfare.email}"> 
	                                            </div>
	                                        </div>
	                                    </div>
	                                </div>
	                            </div>
	                            <div class="row">
	                            	<div class="col-md-12">
	                                    <div class="form-group">
	                                        <div class="input-group intro-content">
	                                            <label class="input-group-addon">需求内容</label>
	                                            <div class="input-group-content">
	                                                <textarea class="form-control" name="content" placeholder="需求内容" disabled>${welfare.content}</textarea>
	                                            </div>
	                                        </div>
	                                    </div>
	                                </div>
	                                <!--/span-->
	                           	</div>
                                <div class="row">
	                            	
	                                <div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">需求性质</label>
	                                            <div class="input-group-content">
	                                            	<select class="form-control input-inline" disabled name="type" >
	                                            		 <option <#if welfare.type == ''> selected</#if> value="">请选择</option>
						                                 <option <#if welfare.type == 'ACCIDENT'> selected</#if> value="ACCIDENT">意外险</option>
						                                 <option <#if welfare.type == 'MEDICAL'> selected</#if> value="MEDICAL">医疗</option>
						                                 <option <#if welfare.type == 'OTHER'> selected</#if> value="OTHER">其它</option>		
					                                </select>
	                                        	</div>
	                                        </div>
	                                    </div>
	                                </div>
	                                <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">所属公司</label>
                                                <div class="input-group-content">
                                                    <select class="form-control input-inline" disabled placeholder="★请输入所属公司" id="comID" name="companyId" >
                                                    	<option selected  value="${welfare.companyId}">${welfare.companyName}</option>
					                                </select>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
	                            </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">提交日期</label>
                                                <div class="input-group-content">
                                                    <input type="text" disabled class="form-control" placeholder="提交日期" name="createTime" value="${welfare.createTime?string("yyyy-MM-dd")}"> 
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">状态</label>
                                                <div class="input-group-content">
                                                    <select class="form-control input-inline" disabled name="status" >
	                                            		 <option <#if welfare.status == ''> selected</#if> value="">请选择</option>
						                                 <option <#if welfare.status == 'COMMIT'> selected</#if> value="COMMIT">提交</option>
						                                 <option <#if welfare.status == '1'> selected</#if> value="PERSONAL">已处理</option>	
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                	<div class="col-md-6">
	                                    <div class="form-group">
	                                        <div class="input-group">
	                                            <label class="input-group-addon">需求来源</label>
	                                            <div class="input-group-content">
	                                            	<select class="form-control input-inline" disabled name="userNature" >
	                                            		 <option <#if welfare.userNature == ''> selected</#if> value="">请选择</option>
						                                 <option <#if welfare.userNature == 'COMPANY'> selected</#if> value="COMMIT">企业</option>
						                                 <option <#if welfare.userNature == 'PERSONAL'> selected</#if> value="PERSONAL">个人</option>	
					                                </select>
	                                        	</div>
	                                        </div>
	                                    </div>
	                                </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <span class="input-group-addon">处理日期</span>
				                                <div class="input-group-content">
				                                    <div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
				                                        <input type="text" class="form-control" readonly="" name="updateTime" id="updateTime">
				                                        <span class="input-group-btn">
				                                            <button class="btn default" type="button">
				                                                <i class="fa fa-calendar"></i>
				                                            </button>
				                                        </span>
				                                    </div>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                        <button type="submit" class="btn green" id="demandSave">保存</button>
                                        <a href="${context}/customerNeed/showindex" class="btn default">返回</a>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>